<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title am-fl">设备信息</div>
                    <div class="widget-function am-fr">
                        <a href="javascript:;" class="am-icon-cog"></a>
                    </div>
                </div>
                <div class="widget-body am-fr">
                    <form class="am-form tpl-form-line-form" id="deviceInformationImgForm" method="post">
                        <input type="hidden" id="id"  name="id" th:value="${record.id}"/>
                        <!--身份证号(identity_num)-->
                        <div class="am-form-group">
                            <label for="identityNum" class="am-u-sm-2 am-form-label">身份证号
                                <span class="tpl-form-line-small-title">identityNum</span>
                            </label>
                            <div class="am-u-sm-10">
                                <input type="text" id="identityNum" class="tpl-form-input" placeholder="请输入" name="identityNum" th:value="${record.identityNum != null} ? ${record.identityNum} : ''"/>
                            </div>
                        </div>
                        <!--整车铭牌和身份证照(identity_and_plate_img)-->
                        <div class="am-form-group">
                            <label for="identityAndPlateImg" class="am-u-sm-2 am-form-label">整车铭牌和身份证照
                                <span class="tpl-form-line-small-title">identityAndPlateImg</span>
                            </label>
                            <div class="am-u-sm-10">
                                <input type="text" id="identityAndPlateImg" class="tpl-form-input" placeholder="请输入" name="identityAndPlateImg" th:value="${record.identityAndPlateImg != null} ? ${record.identityAndPlateImg} : ''"/>
                            </div>
                        </div>
                        <!--大架子号和身份证的合照(identity_and_big_shelf_img)-->
                        <div class="am-form-group">
                            <label for="identityAndBigShelfImg" class="am-u-sm-2 am-form-label">大架子号和身份证的合照
                                <span class="tpl-form-line-small-title">identityAndBigShelfImg</span>
                            </label>
                            <div class="am-u-sm-10">
                                <input type="text" id="identityAndBigShelfImg" class="tpl-form-input" placeholder="请输入" name="identityAndBigShelfImg" th:value="${record.identityAndBigShelfImg != null} ? ${record.identityAndBigShelfImg} : ''"/>
                            </div>
                        </div>
                        <!--发动机铭牌照(engine_plate_img)-->
                        <div class="am-form-group">
                            <label for="enginePlateImg" class="am-u-sm-2 am-form-label">发动机铭牌照
                                <span class="tpl-form-line-small-title">enginePlateImg</span>
                            </label>
                            <div class="am-u-sm-10">
                                <input type="text" id="enginePlateImg" class="tpl-form-input" placeholder="请输入" name="enginePlateImg" th:value="${record.enginePlateImg != null} ? ${record.enginePlateImg} : ''"/>
                            </div>
                        </div>
                        <!--液压泵铭牌照(hydraulic_plate_img)-->
                        <div class="am-form-group">
                            <label for="hydraulicPlateImg" class="am-u-sm-2 am-form-label">液压泵铭牌照
                                <span class="tpl-form-line-small-title">hydraulicPlateImg</span>
                            </label>
                            <div class="am-u-sm-10">
                                <input type="text" id="hydraulicPlateImg" class="tpl-form-input" placeholder="请输入" name="hydraulicPlateImg" th:value="${record.hydraulicPlateImg != null} ? ${record.hydraulicPlateImg} : ''"/>
                            </div>
                        </div>
                        <!--大架子号(big_shelf_num)-->
                        <div class="am-form-group">
                            <label for="bigShelfNum" class="am-u-sm-2 am-form-label">大架子号
                                <span class="tpl-form-line-small-title">bigShelfNum</span>
                            </label>
                            <div class="am-u-sm-10">
                                <input type="text" id="bigShelfNum" class="tpl-form-input" placeholder="请输入" name="bigShelfNum" th:value="${record.bigShelfNum != null} ? ${record.bigShelfNum} : ''"/>
                            </div>
                        </div>
                        <div class="am-form-group">
                            <div class="am-u-sm-10 am-u-sm-push-2">
                                <button type="button" onclick="return doSubmit();"
                                        class="am-btn am-btn-primary tpl-btn-bg-color-success ">提交
                                </button>
                                <button type="button" onclick="loadPage('deviceInformationImg/listUI')"
                                        class="am-btn am-btn-success tpl-btn-bg-color-success ">返回
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script th:inline="javascript">
    <![CDATA[
    //$('select').selected();
    validateUserForm();
    function validateUserForm(){
        valdater=$('#deviceInformationImgForm').validate({
            errorElement : 'span',
            errorClass : 'am-icon-times',
            focusInvalid : true,
            onkeyup:false,
            ignore : "",
            rules : {
                title : {
                    required : true
                }
            },
            messages : {
                name : {
                    required : "请填写标题"
                }
            }
        });
    }

    function doSubmit(){
        if(valdater.form()){
            commit('deviceInformationImgForm', 'deviceInformationImg/save', 'deviceInformationImg/listUI');
            return true;
        }
        return false;
    }

    ]]>
</script>
<script type="text/javascript" th:src="@{/My97DatePicker/WdatePicker.js}"/>